package org.example.task.converter;

import org.example.task.model.dto.user.LoginDTO;
import org.example.task.model.dto.user.UpdateUserDTO;
import org.example.task.model.dto.user.UserRegisterDTO;
import org.example.task.model.po.User;
import org.example.task.model.vo.user.UserVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface UserConverterMapper {
    User userRegisterDTOToUser(UserRegisterDTO userRegisterDTO);
    User loginDTOToUser(LoginDTO userLoginDTO);
    UserVO userToUserVO(User user);
    User updateUserDTOToUser(UpdateUserDTO updateUserDTO);
}
